﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/Main.master" AutoEventWireup="true"
    CodeBehind="UserBasicInfo.aspx.cs" Inherits="AUV5.Web.Pages.UserBasicInfo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        $('#changeEmail').live('click', function (e) {
            openColorBox(this.href);
            preventDefault(e);
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="fl main_left">
        <p class="usertitle">
            个人资料
        </p>
        <div id="showList" class="userprofile">
            <div class="massage_left">
                <ul>
                    <li class="selected">个人信息</li>
                    <li><a href="/Pages/UserPhoto.aspx">我的头像</a></li>
                    <li><a href="/Pages/UserPassword.aspx">修改密码</a></li>
                </ul>
            </div>
            <div class="massage_right userprofile_rightbg">
                <p class="passwordtxt popinfo correctinfo">
                    除昵称和头像外，您填写的个人资料默认是保密的。完善个人资料可以帮助我们更好的了解您的需要，并且日后有针对性的筛选内容为您呈现。</p>
                <p id="result" class="correctinfo" runat="server" visible="false">
                </p>
                <p class="passwordtit">
                    请完善您的个人信息</p>
                <div class="passwordmain">
                    <div class="basicinfo">
                        <table>
                            <tr>
                                <td class="style_one style_onecen">
                                    邮箱
                                </td>
                                <td class="style_two">
                                    <input type="text" id="lbEmail" value="" runat="server" style="background: #ffffff;
                                        border: none;" />
                                </td>
                                <td>
                                    <a id="changeEmail" href="/Pages/UserEmail.aspx">修改邮箱</a>
                                </td>
                            </tr>
                            <%--新加内容--%>
                            <tr>
                                <td class="style1 style_one style_onecen">
                                    用户名
                                </td>
                                <td class="style1 style_two">
                                    <input type="text" id="lbUserName" value="" runat="server" style="background: #ffffff;
                                        border: none;" />
                                </td>
                            </tr>
                            <%--------%>
                            <tr>
                                <td class="style_one style_onetop">
                                    <span style="padding: 10px 0 0 0;">自我简介</span>
                                </td>
                                <td>
                                    <asp:TextBox ID="txbDescription" runat="server" CssClass="profiletextarea" TextMode="MultiLine"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <p class="more_basicinfo">
                        <span class="icon_morehide">完善更多信息</span></p>
                    <script type="text/javascript">
                        $(function () {
                            $('.more_basicinfo span').click(function () {
                                $('.more_basicinfo span').toggleClass("icon_moreshow");
                                $('.extra').toggle();
                            });
                        });
                    </script>
                    <%--点击后的样式icon_moreshow--%>
                    <div class="extra" style="display: none">
                        <div class="basicinfo">
                            <table>
                                <tr>
                                    <td class="style1 style_one style_onecen">
                                        真实姓名
                                    </td>
                                    <td class="style1 style_two">
                                        <asp:TextBox ID="txtRealName" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1 style_one style_onecen">
                                        性别
                                    </td>
                                    <td class="style1 style_two">
                                        <div class="basicinfo_sex">
                                            <asp:RadioButtonList RepeatDirection="Horizontal" ID="rbtnGender" runat="server">
                                            </asp:RadioButtonList>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1 style_one style_onecen">
                                        生日
                                    </td>
                                    <td class="style1 style_two">
                                        <div class="basicinfo_date">
                                            <asp:DropDownList ID="ddlYear" runat="server">
                                            </asp:DropDownList>
                                            <span style="padding: 0 20px 0 5px;">年</span>
                                            <asp:DropDownList ID="ddlMonth" runat="server">
                                            </asp:DropDownList>
                                            <span style="padding: 0 20px 0 5px;">月</span>
                                            <asp:DropDownList ID="ddlDay" runat="server">
                                            </asp:DropDownList>
                                            <span style="padding: 0 20px 0 5px;">日</span>
                                        </div>
                                    </td>
                                </tr>
                                <tr class="style_two">
                                    <td class="style_one style_onetop">
                                        所在地
                                    </td>
                                    <td>
                                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                                            <ContentTemplate>
                                                <asp:DropDownList ID="ddlProvince" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlProvince_SelectedIndexChanged">
                                                </asp:DropDownList>
                                                省/市
                                                <asp:DropDownList ID="ddlCity" runat="server">
                                                </asp:DropDownList>
                                                市/县<asp:RequiredFieldValidator CssClass="errormen" ID="RequiredFieldValidator4" runat="server"
                                                    ControlToValidate="ddlCity" ValidationGroup="ModifyInfo" ErrorMessage="请选择区域"
                                                    SetFocusOnError="True"></asp:RequiredFieldValidator>
                                                <br />
                                                <asp:TextBox ID="txbAddress" Width="355px" CssClass="useraddress" runat="server"></asp:TextBox>
                                            </ContentTemplate>
                                        </asp:UpdatePanel>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1 style_one style_onecen">
                                        电话/手机
                                    </td>
                                    <td class="style1 style_two">
                                        <asp:TextBox ID="txbPhone" runat="server"></asp:TextBox>
                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" CssClass="errormen"
                                            ValidationExpression="((\d{11})|^((\d{7,8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$)"
                                            ControlToValidate="txbPhone" ErrorMessage="格式不符合规则"></asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1 style_one style_onecen">
                                        QQ号码
                                    </td>
                                    <td class="style1 style_two">
                                        <asp:TextBox ID="txtQQ" runat="server"></asp:TextBox>
                                        &nbsp;<asp:RegularExpressionValidator ID="RegularExpressionValidator3" CssClass="errormen"
                                            ValidationExpression="([1-9][0-9]{4,9})" runat="server" ControlToValidate="txtQQ"
                                            ErrorMessage="格式不符合规则"></asp:RegularExpressionValidator>
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <div class="basicinfo">
                            <table>
                                <tr>
                                    <td class="style1 style_one style_onecen">
                                        行业
                                    </td>
                                    <td class="style1 style_two">
                                        <div class="basicinfo_industry">
                                            <asp:DropDownList ID="ddlIndustry" runat="server">
                                            </asp:DropDownList>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1 style_one style_onecen">
                                        教育
                                    </td>
                                    <td class="style1 style_two">
                                        <div class="basicinfo_industry">
                                            <asp:DropDownList ID="ddlEducation" runat="server">
                                            </asp:DropDownList>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1 style_one style_onecen">
                                        收入
                                    </td>
                                    <td class="style1 style_two">
                                        <div class="basicinfo_industry">
                                            <asp:DropDownList ID="ddlIncome" runat="server">
                                            </asp:DropDownList>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1 style_one style_onecen">
                                        婚姻
                                    </td>
                                    <td class="style1 style_two">
                                        <div class="basicinfo_industry">
                                            <asp:DropDownList ID="ddlMarrige" runat="server">
                                            </asp:DropDownList>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="style1 style_one style_onecen" style="line-height: 18px;">
                                        爱好
                                    </td>
                                    <td class="style1 style_two">
                                        <div class="basicinfo_hobby">
                                            <asp:CheckBoxList RepeatColumns="3" RepeatDirection="Horizontal" ID="ckbHobby" runat="server">
                                            </asp:CheckBoxList>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                    <br />
                    <p class="basicinfo_news">
                        <asp:CheckBox ID="ckbReceive" Text="接收AUV5（唯5网）的消息。（By Email）" runat="server" Checked="true" />
                    </p>
                    <p class="basicinfo_news">
                        除昵称以外，您可以随时删除填写的所有个人资料。
                    </p>
                    <div class="saveborder">
                        <asp:ImageButton ID="imgbtnSave0" runat="server" CssClass="userprofile_save" ImageUrl="/!images/btn_saveoff.jpg"
                            onmouseover="MM_swapImage('imgbtnSave0','','/!images/btn_saveon.jpg',6)" onmouseout="MM_swapImgRestore()"
                            alt="保存" ClientIDMode="Static" OnClick="imgbtnSave0_Click" ValidationGroup="ModifyInfo" />
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="fr main_right">
        <div class="basic_info">
            <p class="noreg">
                个人信息安全</p>
            <p class="basic_goregq">
                隐私权是您的重要权利。向我们提供您的个人信息是基于对我们的信任，相信我们会负责的态度对待您的个人信息。我们认为您提供的信息只能用于帮助我们为您提供更好的服务。因此，我们制定了唯5网上个人信息保密制度以保护您的个人信息。
            </p>
        </div>
        <p class="fr">
            <a href="">
                <img src="/!images/logo_privacy.jpg" /></a></p>
        <p class="clear">
        </p>
    </div>
    <p class="clear">
    </p>
</asp:Content>
